* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #2980b9;
}

.building-info {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
}

.info-label {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1rem;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-intact {
    background-color: #00FF00;
    color: #000;
}

.status-damaged {
    background-color: #FFFF00;
    color: #000;
}

.status-collapsed {
    background-color: #FF0000;
    color: #FFF;
}

.timeline-section,
.chart-container,
.damage-photos {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #FF9F55;
    border-radius: 50%;
    top: 15px;
    right: -13px;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -13px;
}

.timeline-content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    position: relative;
}

.timeline-date {
    font-weight: bold;
    color: #FF9F55;
    margin-bottom: 5px;
}

.timeline-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

.damage-photos {
    margin-top: 20px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.photo-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-caption {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.photo-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-style: italic;
    color: #aaa;
}

.earthquake-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #FF9F55;
    border-top: 1px dashed rgba(255, 159, 85, 0.3);
    padding-top: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #aaa;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
    
    .photos-grid {
        grid-template-columns: 1fr;
    }
}